// pages/city/city.js
Page({

  data: {
    hotCities:[
      {id:1002,name:"杭州"},
      {id:1003,name:"上海"},
      {id:1004,name:"武汉"}
    ]
  },

  onLoad: function (options) {

  },
  onClick(e){
    console.log(e);
    var {aid} = e.currentTarget.dataset;
    console.log(aid);
    wx.setStorageSync('city', aid)
    wx.navigateBack()
  },

})